<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - DModel</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/DController.html">DController</a></li>
	
	<li><a href="../symbols/DModel.html">DModel</a></li>
	
	<li><a href="../symbols/dude.html">dude</a></li>
	
	<li><a href="../symbols/dude.controllerFactory.html">dude.controllerFactory</a></li>
	
	<li><a href="../symbols/dude.modelFactory.html">dude.modelFactory</a></li>
	
	<li><a href="../symbols/dude.nav.html">dude.nav</a></li>
	
	<li><a href="../symbols/dude.store.html">dude.store</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class DModel
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
				
			
				This is the DModel.
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/_Volumes_Doodle_gmen_internal_Engineering_DoodleM_Mobile_web_js_mob_dude.js.html">dude.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class DModel.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/DModel.html#constructor">DModel</a></b>(o, k)
							</div>
							<div class="description">Constructing the DModel, initializes the object and sets the identifying key.</div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class DModel.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/DModel.html#busy">busy</a></b>
								</div>
								<div class="description">Calls dude.busy</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/DModel.html#restUrl">restUrl</a></b>
								</div>
								<div class="description">relative restUrl of the DModel.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/DModel.html#unbusy">unbusy</a></b>
								</div>
								<div class="description">Calls dude.unbusy</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class DModel.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;private&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#_ajaxGet">_ajaxGet</a></b>(addInfos, suppressBusy)
								</div>
								<div class="description">Executing the "get" request forced by <a href="../symbols/DModel.html#getData">DModel#getData</a>.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#_deserialize">_deserialize</a></b>(raw)
								</div>
								<div class="description">Deserialization helper function to deserialize from json format to a js object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#_generateId">_generateId</a></b>()
								</div>
								<div class="description">Generating an id for DModels that are not identified by a specific id.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#_validate">_validate</a></b>(cb)
								</div>
								<div class="description">Validating helper function.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#ajaxCall">ajaxCall</a></b>(url, method, addInfos, cb)
								</div>
								<div class="description">Ajax Request helper function.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#ajaxPost">ajaxPost</a></b>(addInfos, successCb)
								</div>
								<div class="description">Following steps are done in ajaxPost:<BR>
- <a href="../symbols/DModel.html#busy">DModel#busy</a> is called<BR>
- Send a "post"-request to the <a href="../symbols/DModel.html#restUrl">DModel#restUrl</a> of the DModel<BR>
- If successfull:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- <a href="../symbols/DModel.html#saved">DModel#saved</a> is called<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- <a href="../symbols/DModel.html#unbusy">DModel#unbusy</a> is called<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- successCb is called</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#change">change</a></b>(tmpl)
								</div>
								<div class="description">Triggering the event "change" on DModel.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#changeEventKey">changeEventKey</a></b>()
								</div>
								<div class="description"></div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#doValidate">doValidate</a></b>(validCb)
								</div>
								<div class="description">Validates the object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#getData">getData</a></b>(addInfos, force, suppressBusy)
								</div>
								<div class="description">Reading the value object of DModel by sending a "get"-request to the <a href="../symbols/DModel.html#restUrl">DModel#restUrl</a> on the Server.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#onValidationError">onValidationError</a></b>()
								</div>
								<div class="description">Function stub for onValidationError.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#read">read</a></b>(key)
								</div>
								<div class="description">Read an attribute of the value object.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#saved">saved</a></b>(o)
								</div>
								<div class="description">This function is called during ajaxPost and can be used as a kind of callback.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#setOnValidationError">setOnValidationError</a></b>(fkt)
								</div>
								<div class="description">Set the function that should be called if a validation error occurs.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#tmpl">tmpl</a></b>(tmpl)
								</div>
								<div class="description">Returns a newly generated jQuery node based on the mustache template given and the value object of this DModel.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/DModel.html#write">write</a></b>(key, value)
								</div>
								<div class="description">Write an attribute of the value object.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>DModel</b>(o, k)
				</div>
				
				<div class="description">
					Constructing the DModel, initializes the object and sets the identifying key.
					
				</div>
				
				
				
				
					
						<dl class="detailList">
						<dt class="heading">Parameters:</dt>
						
							<dt>
								 <b>o</b>
								
							</dt>
								<dd>the value object "behind" the Model.</dd>
						
							<dt>
								 <b>k</b>
								
							</dt>
								<dd>the key which identifies the Model (e.g. for change event triggering).</dd>
						
						</dl>
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name="busy"> </a>
					<div class="fixedFont">
					
					
					<b>busy</b>
					
					</div>
					<div class="description">
						Calls dude.busy
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="restUrl"> </a>
					<div class="fixedFont">
					
					<span class="light">{string}</span>
					<b>restUrl</b>
					
					</div>
					<div class="description">
						relative restUrl of the DModel. Normally initialized by the constructor
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="unbusy"> </a>
					<div class="fixedFont">
					
					
					<b>unbusy</b>
					
					</div>
					<div class="description">
						Calls dude.unbusy
						
						
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="_ajaxGet"> </a>
					<div class="fixedFont">&lt;private&gt; 
					
					
					<b>_ajaxGet</b>(addInfos, suppressBusy)
					
					</div>
					<div class="description">
						Executing the "get" request forced by <a href="../symbols/DModel.html#getData">DModel#getData</a>. Needs the function 
DModel#deserialize to work correct.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>addInfos</b>
									
								</dt>
								<dd></dd>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>suppressBusy</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="_deserialize"> </a>
					<div class="fixedFont">&lt;private&gt; 
					
					<span class="light">{object}</span>
					<b>_deserialize</b>(raw)
					
					</div>
					<div class="description">
						Deserialization helper function to deserialize from json format to a js object.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>raw</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> object representation of the raw string</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="_generateId"> </a>
					<div class="fixedFont">&lt;private&gt; 
					
					<span class="light">{number}</span>
					<b>_generateId</b>()
					
					</div>
					<div class="description">
						Generating an id for DModels that are not identified by a specific id.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> jQuery node representing the DModel.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="_validate"> </a>
					<div class="fixedFont">&lt;private&gt; 
					
					
					<b>_validate</b>(cb)
					
					</div>
					<div class="description">
						Validating helper function. Checks if the current values in the DModel are valid. Should be overwritten.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>cb</b>
									
								</dt>
								<dd>callback method which is called with the errors. Empty object if everything is allright.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="ajaxCall"> </a>
					<div class="fixedFont">
					
					
					<b>ajaxCall</b>(url, method, addInfos, cb)
					
					</div>
					<div class="description">
						Ajax Request helper function.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>url</b>
									
								</dt>
								<dd></dd>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>method</b>
									
								</dt>
								<dd>"post", "get", ...</dd>
							
								<dt>
									<span class="light fixedFont">{object}</span> <b>addInfos</b>
									
								</dt>
								<dd>further parameters for the request.</dd>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>cb</b>
									
								</dt>
								<dd>callback function on success.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="ajaxPost"> </a>
					<div class="fixedFont">
					
					<span class="light">{number}</span>
					<b>ajaxPost</b>(addInfos, successCb)
					
					</div>
					<div class="description">
						Following steps are done in ajaxPost:<BR>
- <a href="../symbols/DModel.html#busy">DModel#busy</a> is called<BR>
- Send a "post"-request to the <a href="../symbols/DModel.html#restUrl">DModel#restUrl</a> of the DModel<BR>
- If successfull:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- <a href="../symbols/DModel.html#saved">DModel#saved</a> is called<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- <a href="../symbols/DModel.html#unbusy">DModel#unbusy</a> is called<BR>
&nbsp;&nbsp;&nbsp;&nbsp;- successCb is called
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>addInfos</b>
									
								</dt>
								<dd>- if you want to add more infos to the request than "just" 
the token, timeZone, adminKey, participantKey, locale, isMobile and all the 
value object attributes.</dd>
							
								<dt>
									<b>successCb</b>
									
								</dt>
								<dd>- a callback which is called in case of success.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{number}</span> jQuery node representing the DModel.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="change"> </a>
					<div class="fixedFont">
					
					<span class="light">{jQuery node}</span>
					<b>change</b>(tmpl)
					
					</div>
					<div class="description">
						Triggering the event "change" on DModel. Has to be called on EVERY change on the model. Should probably private, but sometimes
we can change many attributes on the DModel and trigger the change event later to optimize the
amount of renderings on the page.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>tmpl</b>
									
								</dt>
								<dd>the id of the mustache template.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{jQuery node}</span> jQuery node representing the DModel.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="changeEventKey"> </a>
					<div class="fixedFont">
					
					<span class="light">{string}</span>
					<b>changeEventKey</b>()
					
					</div>
					<div class="description">
						
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{string}</span> "mchanged" + identifying key of the DModel.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="doValidate"> </a>
					<div class="fixedFont">
					
					
					<b>doValidate</b>(validCb)
					
					</div>
					<div class="description">
						Validates the object. Should be called to check if the DModel is valid. Returns false if invalid and 
<a href="../symbols/DModel.html#onValidationError">DModel#onValidationError</a> is called.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>validCb</b>
									
								</dt>
								<dd>called if valid.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="getData"> </a>
					<div class="fixedFont">
					
					
					<b>getData</b>(addInfos, force, suppressBusy)
					
					</div>
					<div class="description">
						Reading the value object of DModel by sending a "get"-request to the <a href="../symbols/DModel.html#restUrl">DModel#restUrl</a> on the Server.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Object}</span> <b>addInfos</b>
									
								</dt>
								<dd>if you want to add specific attributes to the request.</dd>
							
								<dt>
									<span class="light fixedFont">{boolean}</span> <b>force</b>
									
								</dt>
								<dd>force dude to send the request even if the object exists in the cache.</dd>
							
								<dt>
									<span class="light fixedFont">{boolean}</span> <b>suppressBusy</b>
									
								</dt>
								<dd>suppress the call of <a href="../symbols/DModel.html#busy">DModel#busy</a> and <a href="../symbols/DModel.html#unbusy">DModel#unbusy</a>.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="onValidationError"> </a>
					<div class="fixedFont">
					
					
					<b>onValidationError</b>()
					
					</div>
					<div class="description">
						Function stub for onValidationError. Should be overwritten.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="read"> </a>
					<div class="fixedFont">
					
					<span class="light">{object}</span>
					<b>read</b>(key)
					
					</div>
					<div class="description">
						Read an attribute of the value object. By Key or the whole value object.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>key</b>
									
								</dt>
								<dd>the key of the attribute.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{object}</span> the attribute of the value object or the whole value object.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="saved"> </a>
					<div class="fixedFont">
					
					
					<b>saved</b>(o)
					
					</div>
					<div class="description">
						This function is called during ajaxPost and can be used as a kind of callback.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>o</b>
									
								</dt>
								<dd>is the answer object of the server.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="setOnValidationError"> </a>
					<div class="fixedFont">
					
					
					<b>setOnValidationError</b>(fkt)
					
					</div>
					<div class="description">
						Set the function that should be called if a validation error occurs.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{function}</span> <b>fkt</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="tmpl"> </a>
					<div class="fixedFont">
					
					<span class="light">{jQuery node}</span>
					<b>tmpl</b>(tmpl)
					
					</div>
					<div class="description">
						Returns a newly generated jQuery node based on the mustache template given and the value object of this DModel.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<b>tmpl</b>
									
								</dt>
								<dd>the id of the mustache template.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{jQuery node}</span> jQuery node representing the DModel.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="write"> </a>
					<div class="fixedFont">
					
					
					<b>write</b>(key, value)
					
					</div>
					<div class="description">
						Write an attribute of the value object. By Key or if undefined the whole value object. 
Triggers <a href="../symbols/DModel.html#change">DModel#change</a> on DModel.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{string}</span> <b>key</b>
									
								</dt>
								<dd></dd>
							
								<dt>
									<span class="light fixedFont">{object}</span> <b>value</b>
									
								</dt>
								<dd></dd>
							
							</dl>
						
						
						
						
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			&copy;2008-2010<br />
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.4.0 on Thu Jun 30 2011 14:21:03 GMT+0200 (CEST)
		</div>
	</body>
</html>
